package edu.sctu.practice.class01.xiangkun.test01;

/**
 * Created by xiangkun on 2015/10/14.
 */
public class A {

    private int v=100;

    public double getV() {
        return v;
    }

    public A(int v){
       this.v = v;
    }

    public void guessTheNumber(int num){
        if(num == v){
            System.out.println("猜测成功！");
        }else if(num > v){
            System.out.println("猜大了！");
        }else{
            System.out.println("猜小了！");
        }
    }
}
